const router = require("koa-router")()
const UserModel = require("../../models/user")
router.get("/api/getHistory",async ctx=>{
    var item = await UserModel.find({},{history:1})
    var data = item[0].history
    ctx.body={
        code:200,
        res:data,
        msg:'获取收藏的数据'
    }
})
module.exports = router